Skip to content

fix(api): correct argument types in wrap_node and wrap_node_or_nil #3006

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 17, 2024
Merged

fix(api): correct argument types in wrap_node and wrap_node_or_nil #3006

merged 1 commit into from
Nov 17, 2024

Conversation

devxpain
Copy link
Contributor

The wrap_node and wrap_node_or_nil functions now correctly accept Node? to handle nil values, resolving a warning about incorrect argument counts in api.tree.change_root_to_node().

The `wrap_node` and `wrap_node_or_nil` functions now correctly accept `Node?` to handle nil values, resolving a warning about incorrect argument counts in `api.tree.change_root_to_node()`.
Copy link
Member

@alex-courtis alex-courtis left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Many thanks for the fix @devxpain

API is a bit of a mess right now, but it will be properly tidied and annotated during the long running project Multiple Instances

@alex-courtis alex-courtis merged commit f7c65e1 into nvim-tree:master Nov 17, 2024
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants